/**
 * Copyright &copy; 2015-2020 <a href="http://www.jeeplus.org/">JeePlus</a> All rights reserved.
 */
package com.jeeplus.modules.fee.entity;

import com.jeeplus.modules.fee.entity.Bill;
import com.jeeplus.modules.fee.entity.OpenInvoice;
import com.jeeplus.modules.fee.entity.OpenInvoiceDetail;
import com.jeeplus.modules.sys.entity.Office;

import com.jeeplus.core.persistence.DataEntity;
import com.jeeplus.common.utils.excel.annotation.ExcelField;

/**
 * 收款单子表Entity
 * @author weisong
 * @version 2017-09-22
 */
public class BillDetail extends DataEntity<BillDetail> {
	
	private static final long serialVersionUID = 1L;
	private Bill feeBill;		// 收款单
	private OpenInvoice feeOpenInvoice;		// 应开发票
	private OpenInvoiceDetail feeOpenInvoiceDetail;		// 应开发票明细
	private String invoiceNo;		// 发票号
	private Double invoiceMoney;		// 开票金额
	private Double vcaMoney;		// 已核销金额
	private Double theVcaMoney;		// 本次核销金额
	private Office office;		// 物流组织
	
	public BillDetail() {
		super();
	}

	public BillDetail(String id){
		super(id);
	}

	@ExcelField(title="收款单", align=2, sort=6)
	public Bill getFeeBill() {
		return feeBill;
	}

	public void setFeeBill(Bill feeBill) {
		this.feeBill = feeBill;
	}
	
	@ExcelField(title="应开发票", align=2, sort=7)
	public OpenInvoice getFeeOpenInvoice() {
		return feeOpenInvoice;
	}

	public void setFeeOpenInvoice(OpenInvoice feeOpenInvoice) {
		this.feeOpenInvoice = feeOpenInvoice;
	}
	
	@ExcelField(title="应开发票明细", align=2, sort=8)
	public OpenInvoiceDetail getFeeOpenInvoiceDetail() {
		return feeOpenInvoiceDetail;
	}

	public void setFeeOpenInvoiceDetail(OpenInvoiceDetail feeOpenInvoiceDetail) {
		this.feeOpenInvoiceDetail = feeOpenInvoiceDetail;
	}
	
	@ExcelField(title="发票号", align=2, sort=9)
	public String getInvoiceNo() {
		return invoiceNo;
	}

	public void setInvoiceNo(String invoiceNo) {
		this.invoiceNo = invoiceNo;
	}
	
	@ExcelField(title="开票金额", align=2, sort=10)
	public Double getInvoiceMoney() {
		return invoiceMoney;
	}

	public void setInvoiceMoney(Double invoiceMoney) {
		this.invoiceMoney = invoiceMoney;
	}
	
	@ExcelField(title="已核销金额", align=2, sort=11)
	public Double getVcaMoney() {
		return vcaMoney;
	}

	public void setVcaMoney(Double vcaMoney) {
		this.vcaMoney = vcaMoney;
	}
	
	@ExcelField(title="本次核销金额", align=2, sort=12)
	public Double getTheVcaMoney() {
		return theVcaMoney;
	}

	public void setTheVcaMoney(Double theVcaMoney) {
		this.theVcaMoney = theVcaMoney;
	}
	
	@ExcelField(title="物流组织", fieldType=Office.class, value="office.name", align=2, sort=13)
	public Office getOffice() {
		return office;
	}

	public void setOffice(Office office) {
		this.office = office;
	}
	
}